package org.CSL.app.platform.domain.admin;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 角色实体
 * 
 */

public class Privilege implements Serializable {

	
	private static final long serialVersionUID = -3455981107316528721L;

	private String PrivCode;
	/** 名称 */
	private String PrivName;	
	
	/**上级权限代码*/
	private String UpperPrivCode;
	
	/** 模块(菜单) */
	private Module module;
	
	// 权限与用户存在多对多关联
	private Set<User> users = new HashSet<User>(0);
	
	// 权限与角色存多对多关联
	private Set<Role> roles = new HashSet<Role>(0);
	
	/**权限与用户组多对多*/
	private Set<UserGroup> userGroups = new HashSet<UserGroup>(0);
	
	/** 备注 */
	private String remark;
	/** 创建日期 */
	private Date createDate;
	/** 创建人 */
	private User creater;

	
	
	
	public String getPrivCode() {
		return PrivCode;
	}
	public void setPrivCode(String privCode) {
		PrivCode = privCode;
	}
	public String getPrivName() {
		return PrivName;
	}
	public void setPrivName(String privName) {
		PrivName = privName;
	}
	public String getUpperPrivCode() {
		return UpperPrivCode;
	}
	public void setUpperPrivCode(String upperPrivCode) {
		UpperPrivCode = upperPrivCode;
	}
	public Module getModule() {
		return module;
	}
	public void setModule(Module module) {
		this.module = module;
	}
	public Set<User> getUsers() {
		return users;
	}
	public void setUsers(Set<User> users) {
		this.users = users;
	}
	public Set<Role> getRoles() {
		return roles;
	}
	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public User getCreater() {
		return creater;
	}
	public void setCreater(User creater) {
		this.creater = creater;
	}
	public Set<UserGroup> getUserGroups() {
		return userGroups;
	}
	public void setUserGroups(Set<UserGroup> userGroups) {
		this.userGroups = userGroups;
	}
	
	
}